/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.DepartPassengerInfo;
import com.sasis.dao.DepartPassengerInfoDao;
import com.sasis.service.DepartPassengerInfoManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class DepartPassengerInfoManagerImpl extends BaseManager implements DepartPassengerInfoManager {
    private DepartPassengerInfoDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setDepartPassengerInfoDao(DepartPassengerInfoDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.DepartPassengerInfoManager#getDepartPassengerInfos(com.sasis.model.DepartPassengerInfo)
     */
    public List getDepartPassengerInfos(final DepartPassengerInfo departPassengerInfo) {
        return dao.getDepartPassengerInfos(departPassengerInfo);
    }

    /**
     * @see com.sasis.service.DepartPassengerInfoManager#getDepartPassengerInfo(String id)
     */
    public DepartPassengerInfo getDepartPassengerInfo(final String id) {
        return dao.getDepartPassengerInfo(new Integer(id));
    }

    /**
     * @see com.sasis.service.DepartPassengerInfoManager#saveDepartPassengerInfo(DepartPassengerInfo departPassengerInfo)
     */
    public int saveDepartPassengerInfo(DepartPassengerInfo departPassengerInfo) {
        return dao.saveDepartPassengerInfo(departPassengerInfo);
    }

    /**
     * @see com.sasis.service.DepartPassengerInfoManager#removeDepartPassengerInfo(String id)
     */
    public void removeDepartPassengerInfo(DepartPassengerInfo departPassengerInfo) {
        dao.removeDepartPassengerInfo( departPassengerInfo);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
